// 实现：修改地址

import { defineStore } from "pinia";
import { ref } from "vue";

// 1. 创建store
export const useAddressStore = defineStore('address', () => {
  const address = ref()

  const saveAddress = (item) => {
    address.value = item
  }

  return {
    address, saveAddress
  }
})
